# keyboard.py

Backspace = 8
Tab = 9
Enter = 13
Shift = 16
Ctrl = 17
Alt = 18
Pause = 19
CapsLock = 20
Esc = 27
Space = 32
PageUp = 33
PageDown = 34
End = 35
Home = 36
Left = 37
Up = 38
Right = 39
Down = 40
PrintScreen = 44
Insert = 45
Delete = 46
# 字母数字0
top_num_0 = 48
# 字母数字1
top_num_1 = 49
# 字母数字2
top_num_2 = 50
# 字母数字3
top_num_3 = 51
# 字母数字4
top_num_4 = 52
# 字母数字5
top_num_5 = 53
# 字母数字6
top_num_6 = 54
# 字母数字7
top_num_7 = 55
# 字母数字8
top_num_8 = 56
# 字母数字9
top_num_9 = 57
A = 65
B = 66
C = 67
D = 68
E = 69
F = 70
G = 71
H = 72
I = 73
J = 74
K = 75
L = 76
M = 77
N = 78
O = 79
P = 80
Q = 81
R = 82
S = 83
T = 84
U = 85
V = 86
W = 87
X = 88
Y = 89
Z = 90
LeftWin = 91
RightWin = 92
# 小键盘数字0
num_0 = 96
# 小键盘数字1
num_1 = 97
# 小键盘数字2
num_2 = 98
# 小键盘数字3
num_3 = 99
# 小键盘数字4
num_4 = 100
# 小键盘数字5
num_5 = 101
# 小键盘数字6
num_6 = 102
# 小键盘数字7
num_7 = 103
# 小键盘数字8
num_8 = 104
# 小键盘数字9
num_9 = 105
# 小键盘*
num_multiply = 106
# 小键盘+
num_add = 107
# 小键盘 Enter
num_enter = 108
# 小键盘-
num_subtract = 109
# 小键盘 .
num_decimal = 110
# 小键盘/
num_divide = 111
F1 = 112
F2 = 113
F3 = 114
F4 = 115
F5 = 116
F6 = 117
F7 = 118
F8 = 119
F9 = 120
F10 = 121
F11 = 122
F12 = 123
NumLock = 144
Scroll = 145
LeftShift = 160
RightShift = 161
LeftCtrl = 162
RightCtrl = 163
LeftAlt = 164
RightAlt = 165
# ;:
semicolon = 186
# =+
equal = 187
# ,<
comma = 188
# -_
minus = 189
# .>
period = 190
# /?
slash = 191
# `~
grave = 192
# [{
left_bracket = 219
# \|
backslash = 220
# ]}
right_bracket = 221
# ‘“
single_quote = 222

key_name_map = {
    Backspace: "Backspace",
    Tab: "Tab",
    Enter: "Enter",
    Shift: "Shift",
    Ctrl: "Ctrl",
    Alt: "Alt",
    Pause: "Pause",
    CapsLock: "Caps Lock",
    Esc: "Esc",
    Space: "Space",
    PageUp: "Page Up",
    PageDown: "Page Down",
    End: "End",
    Home: "Home",
    Left: "Left",
    Up: "Up",
    Right: "Right",
    Down: "Down",
    PrintScreen: "Print Screen",
    Insert: "Insert",
    Delete: "Delete",
    top_num_0: "0",
    top_num_1: "1",
    top_num_2: "2",
    top_num_3: "3",
    top_num_4: "4",
    top_num_5: "5",
    top_num_6: "6",
    top_num_7: "7",
    top_num_8: "8",
    top_num_9: "9",
    A: "A",
    B: "B",
    C: "C",
    D: "D",
    E: "E",
    F: "F",
    G: "G",
    H: "H",
    I: "I",
    J: "J",
    K: "K",
    L: "L",
    M: "M",
    N: "N",
    O: "O",
    P: "P",
    Q: "Q",
    R: "R",
    S: "S",
    T: "T",
    U: "U",
    V: "V",
    W: "W",
    X: "X",
    Y: "Y",
    Z: "Z",
    LeftWin: "Left Win",
    RightWin: "Right Win",
    num_0: "小键盘 0",
    num_1: "小键盘 1",
    num_2: "小键盘 2",
    num_3: "小键盘 3",
    num_4: "小键盘 4",
    num_5: "小键盘 5",
    num_6: "小键盘 6",
    num_7: "小键盘 7",
    num_8: "小键盘 8",
    num_9: "小键盘 9",
    num_multiply: "小键盘 *",
    num_add: "小键盘 +",
    num_subtract: "小键盘 -",
    num_enter: "小键盘 Enter",
    num_decimal: "小键盘 .",
    num_divide: "小键盘 /",
    F1: "F1",
    F2: "F2",
    F3: "F3",
    F4: "F4",
    F5: "F5",
    F6: "F6",
    F7: "F7",
    F8: "F8",
    F9: "F9",
    F10: "F10",
    F11: "F11",
    F12: "F12",
    NumLock: "Num Lock",
    Scroll: "Scroll",
    LeftShift: "Left Shift",
    RightShift: "Right Shift",
    LeftCtrl: "Left Ctrl",
    RightCtrl: "Right Ctrl",
    LeftAlt: "Left Alt",
    RightAlt: "Right Alt",
    semicolon: ";:",
    equal: "=+",
    comma: ",<",
    minus: "-_",
    period: ".>",
    slash: "/?",
    grave: "`~",
    left_bracket: "[{",
    backslash: "\\|",
    right_bracket: "]}",
    single_quote: "'\"",
}
